package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.DeviceMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.DeviceService;
import com.the4man.framework.model.Device;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("deviceService")
public class DeviceServiceImpl extends AbstractService<Device> implements DeviceService {
    @Autowired
    private DeviceMapper deviceMapper;

    public DeviceServiceImpl() {
    }

    public Set<String> findAllMac(HashMap<String, Object> map) {
        return this.deviceMapper.findAllMac();
    }

    public String selectByName(String hardWareNo) {
        return this.deviceMapper.selectByName(hardWareNo);
    }

    public String selectEmpName(String deviceMac) {
        return this.deviceMapper.selectEmpName(deviceMac);
    }

    public String selectEmpRegion(String deviceMac) {
        return this.deviceMapper.selectEmpRegion(deviceMac);
    }

    public String selectNameById(String id) {
        return this.deviceMapper.selectNameById(id);
    }

    public String selecEmpId(String deviceId) {
        return this.deviceMapper.selectEmpId(deviceId);
    }

    public List<Device> selectAllBangDevice() {
        return this.deviceMapper.selectAllBangDevice();
    }
}
